Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 3 - Page Formatting and Dialog Box Customization / Page Formatting and Dialog Box Customization Reference
Constants and Data Types for Format Collection Items


Orientation Information

The collection item ID for orientation information is defined in the following enumeration:

enum { gxOrientationTag = 'layo' };    
QuickDraw GX stores orientation information in the gxOrientationInfo structure:

struct gxOrientationInfo {
   char     orientation;   
} ;
Field Description
orientation
A character that contains the orientation information. For example, a user may choose to print a document in portrait, landscape, or rotated landscape orientation.
QuickDraw GX defines orientation options in the following enumeration:

enum {
   gxPortraitLayout        = (char) 0, 
   gxLandscapeLayout       = (char) 1, 
   gxRotatedPortraitLayout = (char) 2, 
   gxRotatedLandscapeLayout = (char) 3 
};
Constant descriptions

gxPortraitLayout
If set, QuickDraw GX uses portrait orientation for the user-specified page.
gxLandscapeLayout
If set, QuickDraw GX uses landscape orientation for the user-specified page.
gxRotatedPortraitLayout
If set, QuickDraw GX uses rotated portrait orientation for the page.
gxRotatedLandscapeLayout
If set, QuickDraw GX uses rotated landscape orientation for the user-specified page.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help